<template>
<div>
    <h1>这是app组件</h1>
    <router-link to="/account">account</router-link>
    <router-link to="/goodlist">goodlist</router-link>
    <router-view></router-view>
    <!-- <mybtn type="primary">12345</mybtn> -->
    <mt-button type="default">default</mt-button>
    <mt-button type="danger" icon="more" @click="show">danger</mt-button>
    <br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br> <br><br><br><br><br>
    <br><br><br> <br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br>
</div>
</template>
<script>
import { Toast } from 'mint-ui';
 
 export default{
     data(){
         return{};
     },
     methods:{
         show(){
             Toast({
                 message:"这是消息",
                 duration:1000,//如果是-1，则弹出后不消失 
                 position:"top",
                 iconClass: "glyphicon glyphicon-asterisk",
                 className:'mytoast'//自定义toast的样式，需要自己提供一个类名
             });
         }
     }
 }
</script>
<style>
</style>